package com.alan.shiro.api.bean;

import java.util.HashMap;

/**
 * @Auther: Alan liu
 * @Date: 2018/12/11 19:10
 * @Description: 接口返回对象
 */
public class ResultMap extends HashMap<String,Object> {
    public ResultMap() {
    }

    public ResultMap success() {
        this.put("result", "success");
        return this;
    }

    public ResultMap fail() {
        this.put("result", "fail");
        return this;
    }

    public ResultMap message(Object message) {
        this.put("message", message);
        return this;
    }
}
